//
//  PhotoShowManage.m
//  Koina
//
//  Created by welldone on 13-12-12.
//  Copyright (c) 2013年 net.koina. All rights reserved.
//

#import "PhotoShowManage.h"



@interface PhotoShowManage ()
@end


@implementation PhotoShowManage


+(MWPhotoBrowser*)getMWPhotoShowInstance:(id)delegateTag{
    
    BOOL displayActionButton = false;
    BOOL displaySelectionButtons = NO;
    BOOL displayNavArrows = NO;
    BOOL enableGrid = YES;
    BOOL startOnGrid = NO;
    

    // Create browser
    MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:delegateTag];
    browser.displayActionButton = displayActionButton;
    browser.displayNavArrows = displayNavArrows;
    browser.displaySelectionButtons = displaySelectionButtons;
    browser.alwaysShowControls = displaySelectionButtons;
    browser.zoomPhotosToFill = YES;
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_7_0
    browser.wantsFullScreenLayout = YES;
#endif
    browser.enableGrid = enableGrid;
    browser.startOnGrid = startOnGrid;
    browser.enableSwipeToDismiss = YES;
    [browser setCurrentPhotoIndex:0];

    
    return browser;
}









@end
